<template>
    <!-- 客户信息 -->
<div class="contracta">
    <span class="spanone">逐级审批</span>
    <h3>客户信息</h3>
    <div class="contracta-tabel">
        <!-- 左 -->
        <div class="img">
            <el-icon @click="backs"><Back /></el-icon>
        </div>
        <!-- 表格 -->
        <div class="tabel" v-if="act=='0'">
            <el-tabs v-model="activeName" class="demo-tabs" @tab-click="handleClick">
                <el-tab-pane label="基本信息" name="first">基本信息</el-tab-pane>
                <el-tab-pane label="资产负债表" name="second">资产负债表</el-tab-pane>
                <el-tab-pane label="利润表" name="third">利润表</el-tab-pane>
                <el-tab-pane label="现金流量表" name="fourth">现金流量表</el-tab-pane>
                <el-tab-pane label="股东信息" name="five">股东信息</el-tab-pane>
                <el-tab-pane label="管理团队" name="sixed">管理团队</el-tab-pane>
                <el-tab-pane label="银行账户信息" name="senved">银行账户信息</el-tab-pane>
                <el-tab-pane label="企业信用概况" name="senvd">企业信用概况</el-tab-pane>
                <el-tab-pane label="企业信用概况" name="senveds">企业信用概况</el-tab-pane>
            </el-tabs>
        </div>
        <div class="tabel" v-else-if="act=='1'">
            <el-tabs v-model="activeName" class="demo-tabs" @tab-click="handleClick" type="card">
                <el-tab-pane label="对外担保信息" name="first">对外担保信息</el-tab-pane>
                <el-tab-pane label="授信用信情况" name="second2">授信用信情况</el-tab-pane>
                <el-tab-pane label="上下游企业" name="third3">上下游企业</el-tab-pane>
                <el-tab-pane label="所属核心企业" name="fourth4">所属核心企业</el-tab-pane>
                <el-tab-pane label="核心企业授信情况" name="five">核心企业授信情况</el-tab-pane>
                <el-tab-pane label="企业附件" name="sixed">企业附件</el-tab-pane>
                <el-tab-pane label="申请附件" name="senved">申请附件</el-tab-pane>
                <el-tab-pane label="信用评级" name="senvd">信用评级</el-tab-pane>
                <el-tab-pane label="审批历史" name="senveds">审批历史</el-tab-pane>
            </el-tabs>
        </div>
        <div class="tabel" v-else-if="act=='2'">
            <el-tabs v-model="activeName" class="demo-tabs" @tab-click="handleClick">
                <el-tab-pane label="流程信息" name="first">流程信息</el-tab-pane>
            </el-tabs>
        </div>
        <!-- 右 -->
        <div class="img">
            <el-icon @click="rights"><Right /></el-icon>
        </div>
    </div>

</div>
</template>

<script setup>
    import { onMounted, ref } from 'vue'
    import {useRouter} from 'vue-router'

    var router=useRouter()
    var act=ref("0")

    const activeName = ref('first')
    const handleClick = (tab, event) => {
        console.log(tab, event)
    }

    var backs=()=>{
        console.log("backs");
        if (act.value++ <= 2) act.value = 0
    }
    var rights=()=>{
        console.log("rights");
        if (act.value++ >= 2) act.value = 0
    }

</script>

<style scoped>
/* 标题 */
.contracta .spanone{
    color: #fff;
    background-color: #4ba7fe;
    padding: 6px 50px;
    border-radius: 30px;
}
.contracta .img{
    background: url("https://cdn7.axureshop.com/demo/1453833/images/%E6%A0%B8%E5%BF%83%E4%BC%81%E4%B8%9A%E7%AE%A1%E7%90%86/u2521.svg") no-repeat;
    height: 60px;
    width: 60px;
}
.contracta .el-icon{
    height: 40px;
    width: 40px;
    color: #4ba7fe;
    font-size: 30px;
}

/*  */
.demo-tabs > .el-tabs__content {
  padding: 32px;
  color: #6b778c;
  font-size: 32px;
  font-weight: 600;
}

/* contracta-tabel */
.contracta .contracta-tabel{
    display: flex;
    justify-content: space-around;
}
.contracta .contracta-tabel .tabel{
    width: 90%;
}
.contracta .contracta-tabel .tabel :deep(.el-tabs__item){
    width: 200px;
}

</style>